// 此文件是订单的数据库设计


const mongoose = require('mongoose');

let schema = new mongoose.Schema({
  userId: String,
  selectedSku: [{
    goodsId: String,
    selectedNum: Number,
    selectedSkuComb: Object
  }],
  createTime: {  // 创建时间
    type: Date,
    default: Date.now()
  },
  status: Number
})
module.exports = mongoose.model('orders', schema)